package org.example.server.app.goods.response.goods;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;


/**
 * {
 *   "error": 0,
 *   "msg": "获取成功",
 *   "data": {
 *     "total": 1,
 *     "per_page": 6,
 *     "current_page": 1,
 *     "last_page": 1,
 *     "data": [
 *       {
 *         "status_text": "上架中",
 *         "type_text": "实体商品",
 *         "dispatch_type_text": "快递物流",
 *         "id": 22,
 *         "type": "normal",
 *         "title": "猫人男士睡衣男夏季100%纯棉薄款圆领套头短袖套装男ins潮休闲运动可外穿家居服",
 *         "subtitle": "休闲运动可外穿家居服",
 *         "category_ids": "4,10,11,22,23,24,33",
 *         "image": "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/8f232befa2dcbabb6ce69e7faa7d4df1.jpg",
 *         "image_wh": null,
 *         "images": [
 *           "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/8f232befa2dcbabb6ce69e7faa7d4df1.jpg",
 *           "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/6c31922ef2d12bb5e0b3bf9c24070908.jpg"
 *         ],
 *         "params": [
 *           {
 *             "title": "材质",
 *             "content": "棉"
 *           },
 *           {
 *             "title": "厚度",
 *             "content": "常规"
 *           },
 *           {
 *             "title": "适用季节",
 *             "content": "夏季"
 *           },
 *           {
 *             "title": "穿着方式",
 *             "content": "套头"
 *           },
 *           {
 *             "title": "裤长",
 *             "content": "短裤"
 *           },
 *           {
 *             "title": "分格",
 *             "content": "文艺风"
 *           }
 *         ],
 *         "original_price": "110.00",
 *         "price": [
 *           "99.00"
 *         ],
 *         "is_sku": 1,
 *         "limit_type": "none",
 *         "limit_num": 0,
 *         "likes": 0,
 *         "views": 688,
 *         "sales": 50,
 *         "sales_show_type": "exact",
 *         "stock_show_type": "exact",
 *         "show_sales": 0,
 *         "service_ids": [
 *           1,
 *           2,
 *           3,
 *           4
 *         ],
 *         "dispatch_type": "express",
 *         "dispatch_id": 1,
 *         "is_offline": 0,
 *         "status": "up",
 *         "weigh": 0,
 *         "create_time": "2024-05-23 10:05:15",
 *         "update_time": "2024-05-23 10:05:15",
 *         "delete_time": null,
 *         "new_sku_prices": [
 *           {
 *             "goods_sku_text": [
 *               "L"
 *             ],
 *             "status_text": "上架",
 *             "id": 55,
 *             "goods_sku_ids": "53",
 *             "goods_id": 22,
 *             "image": "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/6c31922ef2d12bb5e0b3bf9c24070908.jpg",
 *             "stock": 5,
 *             "stock_warning": null,
 *             "sales": 12,
 *             "sn": "",
 *             "weight": "0.00",
 *             "cost_price": "50.00",
 *             "original_price": "110.00",
 *             "price": "99.00",
 *             "status": "up",
 *             "weigh": 0,
 *             "create_time": "2024-05-23 10:05:15",
 *             "update_time": "2024-05-23 10:05:15"
 *           },
 *           {
 *             "goods_sku_text": [
 *               "XL"
 *             ],
 *             "status_text": "上架",
 *             "id": 56,
 *             "goods_sku_ids": "54",
 *             "goods_id": 22,
 *             "image": "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/6c31922ef2d12bb5e0b3bf9c24070908.jpg",
 *             "stock": 2,
 *             "stock_warning": null,
 *             "sales": 15,
 *             "sn": "",
 *             "weight": "0.00",
 *             "cost_price": "50.00",
 *             "original_price": "110.00",
 *             "price": "99.00",
 *             "status": "up",
 *             "weigh": 0,
 *             "create_time": "2024-05-23 10:05:15",
 *             "update_time": "2024-05-23 10:05:15"
 *           },
 *           {
 *             "goods_sku_text": [
 *               "2XL"
 *             ],
 *             "status_text": "上架",
 *             "id": 57,
 *             "goods_sku_ids": "55",
 *             "goods_id": 22,
 *             "image": "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/6c31922ef2d12bb5e0b3bf9c24070908.jpg",
 *             "stock": 4,
 *             "stock_warning": null,
 *             "sales": 13,
 *             "sn": "",
 *             "weight": "0.00",
 *             "cost_price": "50.00",
 *             "original_price": "110.00",
 *             "price": "99.00",
 *             "status": "up",
 *             "weigh": 0,
 *             "create_time": "2024-05-23 10:05:15",
 *             "update_time": "2024-05-23 10:05:15"
 *           },
 *           {
 *             "goods_sku_text": [
 *               "3XL"
 *             ],
 *             "status_text": "上架",
 *             "id": 58,
 *             "goods_sku_ids": "56",
 *             "goods_id": 22,
 *             "image": "http:\/\/file.sheepjs.com\/storage\/test\/20220822\/6c31922ef2d12bb5e0b3bf9c24070908.jpg",
 *             "stock": 15,
 *             "stock_warning": null,
 *             "sales": 10,
 *             "sn": "",
 *             "weight": "0.00",
 *             "cost_price": "50.00",
 *             "original_price": "110.00",
 *             "price": "99.00",
 *             "status": "up",
 *             "weigh": 0,
 *             "create_time": "2024-05-23 10:05:15",
 *             "update_time": "2024-05-23 10:05:15"
 *           }
 *         ],
 *         "stock": 26,
 *         "activity_type": null,
 *         "activities": [
 *
 *         ],
 *         "promos": [
 *           {
 *             "goods_ids": "",
 *             "end_time": "1725119999",
 *             "id": "181",
 *             "type": "free_shipping",
 *             "richtext_id": "0",
 *             "rules": {
 *               "type": "money",
 *               "province_except": "",
 *               "city_except": "",
 *               "district_except": "",
 *               "district_text": [
 *
 *               ],
 *               "full_num": "100"
 *             },
 *             "richtext_title": "",
 *             "type_text": "满邮",
 *             "start_time": "1721318400",
 *             "classify": "promo",
 *             "prehead_time": "1721318400",
 *             "title": "全场包邮",
 *             "status": "ing",
 *             "status_text": "进行中",
 *             "tag": "满100元包邮",
 *             "tags": [
 *               "满100元包邮"
 *             ],
 *             "texts": [
 *               "满100元即可包邮"
 *             ]
 *           }
 *         ]
 *       }
 *     ]
 *   }
 * }
 */
@Getter
@Setter
public class Goods {
  private String id;
  private String title;
  private String subTitle;
  private String image;
  @JsonProperty("original_price")
  private String originalPrice;
  private Integer sales;
  private Integer stock;
}
